/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-29
 * Time: 11:16
 */
public class Test {
    public static void main(String[] args) {
        MyLikedList myLikedList = new MyLikedList();

        /*myLikedList.addFirst(1);
        myLikedList.addFirst(2);
        myLikedList.addFirst(3);
        myLikedList.addFirst(4);
        myLikedList.display();*/

        myLikedList.addLast(2);
        myLikedList.addLast(1);
        myLikedList.addLast(1);
        myLikedList.addLast(2);
        myLikedList.display();
       /* System.out.println(myLikedList.size());
        System.out.println(myLikedList.contains(3));*/

        //myLikedList.addIndex(4,100);
        myLikedList.removeAllKey(2);
        myLikedList.display();

    }
}
